home *** CD-ROM | disk | FTP | other *** search
/ Die Ultimative Software-P…i Collection 1996 & 1997 / Die Ultimative Software-Pakete CD-ROM fur Atari Collection 1996 & 1997.iso / g / gnu_c / info.lzh / INFO / GCC_INFO.3 < prev    next >
Encoding:
GNU Info File  |  1993-10-21  |  51.1 KB  |  1,298 lines

  1. This is Info file gcc.info, produced by Makeinfo-1.54 from the input
  2. file gcc.texi.
  3.  
  4.    This file documents the use and the internals of the GNU compiler.
  5.  
  6.    Copyright (C) 1988, 1989, 1992, 1993 Free Software Foundation, Inc.
  7.  
  8.    Permission is granted to make and distribute verbatim copies of this
  9. manual provided the copyright notice and this permission notice are
  10. preserved on all copies.
  11.  
  12.    Permission is granted to copy and distribute modified versions of
  13. this manual under the conditions for verbatim copying, provided also
  14. that the sections entitled "GNU General Public License" and "Protect
  15. Your Freedom--Fight `Look And Feel'" are included exactly as in the
  16. original, and provided that the entire resulting derived work is
  17. distributed under the terms of a permission notice identical to this
  18. one.
  19.  
  20.    Permission is granted to copy and distribute translations of this
  21. manual into another language, under the above conditions for modified
  22. versions, except that the sections entitled "GNU General Public
  23. License" and "Protect Your Freedom--Fight `Look And Feel'", and this
  24. permission notice, may be included in translations approved by the Free
  25. Software Foundation instead of in the original English.
  26.  
  27. File: gcc.info,  Node: Preprocessor Options,  Next: Assembler Options,  Prev: Optimize Options,  Up: Invoking GCC
  28.  
  29. Options Controlling the Preprocessor
  30. ====================================
  31.  
  32.    These options control the C preprocessor, which is run on each C
  33. source file before actual compilation.
  34.  
  35.    If you use the `-E' option, nothing is done except preprocessing.
  36. Some of these options make sense only together with `-E' because they
  37. cause the preprocessor output to be unsuitable for actual compilation.
  38.  
  39. `-include FILE'
  40.      Process FILE as input before processing the regular input file.
  41.      In effect, the contents of FILE are compiled first.  Any `-D' and
  42.      `-U' options on the command line are always processed before
  43.      `-include FILE', regardless of the order in which they are
  44.      written.  All the `-include' and `-imacros' options are processed
  45.      in the order in which they are written.
  46.  
  47. `-imacros FILE'
  48.      Process FILE as input, discarding the resulting output, before
  49.      processing the regular input file.  Because the output generated
  50.      from FILE is discarded, the only effect of `-imacros FILE' is to
  51.      make the macros defined in FILE available for use in the main
  52.      input.
  53.  
  54.      Any `-D' and `-U' options on the command line are always processed
  55.      before `-imacros FILE', regardless of the order in which they are
  56.      written.  All the `-include' and `-imacros' options are processed
  57.      in the order in which they are written.
  58.  
  59. `-idirafter DIR'
  60.      Add the directory DIR to the second include path.  The directories
  61.      on the second include path are searched when a header file is not
  62.      found in any of the directories in the main include path (the one
  63.      that `-I' adds to).
  64.  
  65. `-iprefix PREFIX'
  66.      Specify PREFIX as the prefix for subsequent `-iwithprefix' options.
  67.  
  68. `-iwithprefix DIR'
  69.      Add a directory to the second include path.  The directory's name
  70.      is made by concatenating PREFIX and DIR, where PREFIX was
  71.      specified previously with `-iprefix'.
  72.  
  73. `-nostdinc'
  74.      Do not search the standard system directories for header files.
  75.      Only the directories you have specified with `-I' options (and the
  76.      current directory, if appropriate) are searched.  *Note Directory
  77.      Options::, for information on `-I'.
  78.  
  79.      By using both `-nostdinc' and `-I-', you can limit the include-file
  80.      search path to only those directories you specify explicitly.
  81.  
  82. `-undef'
  83.      Do not predefine any nonstandard macros.  (Including architecture
  84.      flags).
  85.  
  86. `-E'
  87.      Run only the C preprocessor.  Preprocess all the C source files
  88.      specified and output the results to standard output or to the
  89.      specified output file.
  90.  
  91. `-C'
  92.      Tell the preprocessor not to discard comments.  Used with the `-E'
  93.      option.
  94.  
  95. `-P'
  96.      Tell the preprocessor not to generate `#line' commands.  Used with
  97.      the `-E' option.
  98.  
  99. `-M'
  100.      Tell the preprocessor to output a rule suitable for `make'
  101.      describing the dependencies of each object file.  For each source
  102.      file, the preprocessor outputs one `make'-rule whose target is the
  103.      object file name for that source file and whose dependencies are
  104.      all the `#include' header files it uses.  This rule may be a
  105.      single line or may be continued with `\'-newline if it is long.
  106.      The list of rules is printed on standard output instead of the
  107.      preprocessed C program.
  108.  
  109.      `-M' implies `-E'.
  110.  
  111.      Another way to specify output of a `make' rule is by setting the
  112.      environment variable `DEPENDENCIES_OUTPUT' (*note Environment
  113.      Variables::.).
  114.  
  115. `-MM'
  116.      Like `-M' but the output mentions only the user header files
  117.      included with `#include "FILE"'.  System header files included
  118.      with `#include <FILE>' are omitted.
  119.  
  120. `-MD'
  121.      Like `-M' but the dependency information is written to files with
  122.      names made by replacing `.o' with `.d' at the end of the output
  123.      file names.  This is in addition to compiling the input files as
  124.      specified--`-MD' does not inhibit ordinary compilation the way
  125.      `-M' does.
  126.  
  127.      The Mach utility `md' can be used to merge the `.d' files into a
  128.      single dependency file suitable for using with the `make' command.
  129.  
  130. `-MMD'
  131.      Like `-MD' except mention only user header files, not system
  132.      header files.
  133.  
  134. `-H'
  135.      Print the name of each header file used, in addition to other
  136.      normal activities.
  137.  
  138. `-AQUESTION(ANSWER)'
  139.      Assert the answer ANSWER for QUESTION, in case it is tested with a
  140.      preprocessor conditional such as `#if #QUESTION(ANSWER)'.  `-A-'
  141.      disables the standard assertions that normally describe the target
  142.      machine.
  143.  
  144. `-DMACRO'
  145.      Define macro MACRO with the string `1' as its definition.
  146.  
  147. `-DMACRO=DEFN'
  148.      Define macro MACRO as DEFN.  All instances of `-D' on the command
  149.      line are processed before any `-U' options.
  150.  
  151. `-UMACRO'
  152.      Undefine macro MACRO.  `-U' options are evaluated after all `-D'
  153.      options, but before any `-include' and `-imacros' options.
  154.  
  155. `-dM'
  156.      Tell the preprocessor to output only a list of the macro
  157.      definitions that are in effect at the end of preprocessing.  Used
  158.      with the `-E' option.
  159.  
  160. `-dD'
  161.      Tell the preprocessing to pass all macro definitions into the
  162.      output, in their proper sequence in the rest of the output.
  163.  
  164. `-dN'
  165.      Like `-dD' except that the macro arguments and contents are
  166.      omitted.  Only `#define NAME' is included in the output.
  167.  
  168. `-trigraphs'
  169.      Support ANSI C trigraphs.  You don't want to know about this
  170.      brain-damage.  The `-ansi' option also has this effect.
  171.  
  172. File: gcc.info,  Node: Assembler Options,  Next: Link Options,  Prev: Preprocessor Options,  Up: Invoking GCC
  173.  
  174. Passing Options to the Assembler
  175. ================================
  176.  
  177. `-Wa,OPTION'
  178.      Pass OPTION as an option to the assembler.  If OPTION contains
  179.      commas, it is split into multiple options at the commas.
  180.  
  181. File: gcc.info,  Node: Link Options,  Next: Directory Options,  Prev: Assembler Options,  Up: Invoking GCC
  182.  
  183. Options for Linking
  184. ===================
  185.  
  186.    These options come into play when the compiler links object files
  187. into an executable output file.  They are meaningless if the compiler is
  188. not doing a link step.
  189.  
  190. `OBJECT-FILE-NAME'
  191.      A file name that does not end in a special recognized suffix is
  192.      considered to name an object file or library.  (Object files are
  193.      distinguished from libraries by the linker according to the file
  194.      contents.)  If linking is done, these object files are used as
  195.      input to the linker.
  196.  
  197. `-c'
  198. `-S'
  199. `-E'
  200.      If any of these options is used, then the linker is not run, and
  201.      object file names should not be used as arguments.  *Note Overall
  202.      Options::.
  203.  
  204. `-lLIBRARY'
  205.      Search the library named LIBRARY when linking.
  206.  
  207.      It makes a difference where in the command you write this option;
  208.      the linker searches processes libraries and object files in the
  209.      order they are specified.  Thus, `foo.o -lz bar.o' searches
  210.      library `z' after file `foo.o' but before `bar.o'.  If `bar.o'
  211.      refers to functions in `z', those functions may not be loaded.
  212.  
  213.      The linker searches a standard list of directories for the library,
  214.      which is actually a file named `libLIBRARY.a'.  The linker then
  215.      uses this file as if it had been specified precisely by name.
  216.  
  217.      The directories searched include several standard system
  218.      directories plus any that you specify with `-L'.
  219.  
  220.      Normally the files found this way are library files--archive files
  221.      whose members are object files.  The linker handles an archive
  222.      file by scanning through it for members which define symbols that
  223.      have so far been referenced but not defined.  But if the file that
  224.      is found is an ordinary object file, it is linked in the usual
  225.      fashion.  The only difference between using an `-l' option and
  226.      specifying a file name is that `-l' surrounds LIBRARY with `lib'
  227.      and `.a' and searches several directories.
  228.  
  229. `-lobjc'
  230.      You need this special case of the `-l' option in order to link an
  231.      Objective C program.
  232.  
  233. `-nostartfiles'
  234.      Do not use the standard system startup files when linking.  The
  235.      standard libraries are used normally.
  236.  
  237. `-nostdlib'
  238.      Don't use the standard system libraries and startup files when
  239.      linking.  Only the files you specify will be passed to the linker.
  240.  
  241. `-static'
  242.      On systems that support dynamic linking, this prevents linking
  243.      with the shared libraries.  On other systems, this option has no
  244.      effect.
  245.  
  246. `-shared'
  247.      Produce a shared object which can then be linked with other
  248.      objects to form an executable.  Only a few systems support this
  249.      option.
  250.  
  251. `-symbolic'
  252.      Bind references to global symbols when building a shared object.
  253.      Warn about any unresolved references (unless overridden by the
  254.      link editor option `-Xlinker -z -Xlinker defs').  Only a few
  255.      systems support this option.
  256.  
  257. `-Xlinker OPTION'
  258.      Pass OPTION as an option to the linker.  You can use this to
  259.      supply system-specific linker options which GNU CC does not know
  260.      how to recognize.
  261.  
  262.      If you want to pass an option that takes an argument, you must use
  263.      `-Xlinker' twice, once for the option and once for the argument.
  264.      For example, to pass `-assert definitions', you must write
  265.      `-Xlinker -assert -Xlinker definitions'.  It does not work to write
  266.      `-Xlinker "-assert definitions"', because this passes the entire
  267.      string as a single argument, which is not what the linker expects.
  268.  
  269. `-Wl,OPTION'
  270.      Pass OPTION as an option to the linker.  If OPTION contains
  271.      commas, it is split into multiple options at the commas.
  272.  
  273. `-u SYMBOL'
  274.      Pretend the symbol SYMBOL is undefined, to force linking of
  275.      library modules to define it.  You can use `-u' multiple times with
  276.      different symbols to force loading of additional library modules.
  277.  
  278. File: gcc.info,  Node: Directory Options,  Next: Target Options,  Prev: Link Options,  Up: Invoking GCC
  279.  
  280. Options for Directory Search
  281. ============================
  282.  
  283.    These options specify directories to search for header files, for
  284. libraries and for parts of the compiler:
  285.  
  286. `-IDIR'
  287.      Append directory DIR to the list of directories searched for
  288.      include files.
  289.  
  290. `-I-'
  291.      Any directories you specify with `-I' options before the `-I-'
  292.      option are searched only for the case of `#include "FILE"'; they
  293.      are not searched for `#include <FILE>'.
  294.  
  295.      If additional directories are specified with `-I' options after
  296.      the `-I-', these directories are searched for all `#include'
  297.      directives.  (Ordinarily *all* `-I' directories are used this way.)
  298.  
  299.      In addition, the `-I-' option inhibits the use of the current
  300.      directory (where the current input file came from) as the first
  301.      search directory for `#include "FILE"'.  There is no way to
  302.      override this effect of `-I-'.  With `-I.' you can specify
  303.      searching the directory which was current when the compiler was
  304.      invoked.  That is not exactly the same as what the preprocessor
  305.      does by default, but it is often satisfactory.
  306.  
  307.      `-I-' does not inhibit the use of the standard system directories
  308.      for header files.  Thus, `-I-' and `-nostdinc' are independent.
  309.  
  310. `-LDIR'
  311.      Add directory DIR to the list of directories to be searched for
  312.      `-l'.
  313.  
  314. `-BPREFIX'
  315.      This option specifies where to find the executables, libraries and
  316.      data files of the compiler itself.
  317.  
  318.      The compiler driver program runs one or more of the subprograms
  319.      `cpp', `cc1', `as' and `ld'.  It tries PREFIX as a prefix for each
  320.      program it tries to run, both with and without `MACHINE/VERSION/'
  321.      (*note Target Options::.).
  322.  
  323.      For each subprogram to be run, the compiler driver first tries the
  324.      `-B' prefix, if any.  If that name is not found, or if `-B' was
  325.      not specified, the driver tries two standard prefixes, which are
  326.      `/usr/lib/gcc/' and `/usr/local/lib/gcc-lib/'.  If neither of
  327.      those results in a file name that is found, the unmodified program
  328.      name is searched for using the directories specified in your
  329.      `PATH' environment variable.
  330.  
  331.      `-B' prefixes that effectively specify directory names also apply
  332.      to libraries in the linker, because the compiler translates these
  333.      options into `-L' options for the linker.
  334.  
  335.      The run-time support file `libgcc.a' can also be searched for using
  336.      the `-B' prefix, if needed.  If it is not found there, the two
  337.      standard prefixes above are tried, and that is all.  The file is
  338.      left out of the link if it is not found by those means.
  339.  
  340.      Another way to specify a prefix much like the `-B' prefix is to use
  341.      the environment variable `GCC_EXEC_PREFIX'.  *Note Environment
  342.      Variables::.
  343.  
  344. File: gcc.info,  Node: Target Options,  Next: Submodel Options,  Prev: Directory Options,  Up: Invoking GCC
  345.  
  346. Specifying Target Machine and Compiler Version
  347. ==============================================
  348.  
  349.    By default, GNU CC compiles code for the same type of machine that
  350. you are using.  However, it can also be installed as a cross-compiler,
  351. to compile for some other type of machine.  In fact, several different
  352. configurations of GNU CC, for different target machines, can be
  353. installed side by side.  Then you specify which one to use with the
  354. `-b' option.
  355.  
  356.    In addition, older and newer versions of GNU CC can be installed side
  357. by side.  One of them (probably the newest) will be the default, but
  358. you may sometimes wish to use another.
  359.  
  360. `-b MACHINE'
  361.      The argument MACHINE specifies the target machine for compilation.
  362.      This is useful when you have installed GNU CC as a cross-compiler.
  363.  
  364.      The value to use for MACHINE is the same as was specified as the
  365.      machine type when configuring GNU CC as a cross-compiler.  For
  366.      example, if a cross-compiler was configured with `configure
  367.      i386v', meaning to compile for an 80386 running System V, then you
  368.      would specify `-b i386v' to run that cross compiler.
  369.  
  370.      When you do not specify `-b', it normally means to compile for the
  371.      same type of machine that you are using.
  372.  
  373. `-V VERSION'
  374.      The argument VERSION specifies which version of GNU CC to run.
  375.      This is useful when multiple versions are installed.  For example,
  376.      VERSION might be `2.0', meaning to run GNU CC version 2.0.
  377.  
  378.      The default version, when you do not specify `-V', is controlled
  379.      by the way GNU CC is installed.  Normally, it will be a version
  380.      that is recommended for general use.
  381.  
  382.    The `-b' and `-V' options actually work by controlling part of the
  383. file name used for the executable files and libraries used for
  384. compilation.  A given version of GNU CC, for a given target machine, is
  385. normally kept in the directory `/usr/local/lib/gcc-lib/MACHINE/VERSION'.
  386.  
  387.    It follows that sites can customize the effect of `-b' or `-V'
  388. either by changing the names of these directories or adding alternate
  389. names (or symbolic links).  Thus, if `/usr/local/lib/gcc-lib/80386' is
  390. a link to `/usr/local/lib/gcc-lib/i386v', then `-b 80386' becomes an
  391. alias for `-b i386v'.
  392.  
  393.    In one respect, the `-b' or `-V' do not completely change to a
  394. different compiler: the top-level driver program `gcc' that you
  395. originally invoked continues to run and invoke the other executables
  396. (preprocessor, compiler per se, assembler and linker) that do the real
  397. work.  However, since no real work is done in the driver program, it
  398. usually does not matter that the driver program in use is not the one
  399. for the specified target and version.
  400.  
  401.    The only way that the driver program depends on the target machine is
  402. in the parsing and handling of special machine-specific options.
  403. However, this is controlled by a file which is found, along with the
  404. other executables, in the directory for the specified version and
  405. target machine.  As a result, a single installed driver program adapts
  406. to any specified target machine and compiler version.
  407.  
  408.    The driver program executable does control one significant thing,
  409. however: the default version and target machine.  Therefore, you can
  410. install different instances of the driver program, compiled for
  411. different targets or versions, under different names.
  412.  
  413.    For example, if the driver for version 2.0 is installed as `ogcc'
  414. and that for version 2.1 is installed as `gcc', then the command `gcc'
  415. will use version 2.1 by default, while `ogcc' will use 2.0 by default.
  416. However, you can choose either version with either command with the
  417. `-V' option.
  418.  
  419. File: gcc.info,  Node: Submodel Options,  Next: Code Gen Options,  Prev: Target Options,  Up: Invoking GCC
  420.  
  421. Hardware Models and Configurations
  422. ==================================
  423.  
  424.    Earlier we discussed the standard option `-b' which chooses among
  425. different installed compilers for completely different target machines,
  426. such as Vax vs. 68000 vs. 80386.
  427.  
  428.    In addition, each of these target machine types can have its own
  429. special options, starting with `-m', to choose among various hardware
  430. models or configurations--for example, 68010 vs 68020, floating
  431. coprocessor or none.  A single installed version of the compiler can
  432. compile for any model or configuration, according to the options
  433. specified.
  434.  
  435.    Some configurations of the compiler also support additional special
  436. options, usually for compatibility with other compilers on the same
  437. platform.
  438.  
  439.    These options are defined by the macro `TARGET_SWITCHES' in the
  440. machine description.  The default for the options is also defined by
  441. that macro, which enables you to change the defaults.
  442.  
  443. * Menu:
  444.  
  445. * M680x0 Options::
  446. * VAX Options::
  447. * SPARC Options::
  448. * Convex Options::
  449. * AMD29K Options::
  450. * M88K Options::
  451. * RS/6000 Options::
  452. * RT Options::
  453. * MIPS Options::
  454. * i386 Options::
  455. * HPPA Options::
  456. * Intel 960 Options::
  457. * DEC Alpha Options::
  458. * System V Options::
  459.  
  460. File: gcc.info,  Node: M680x0 Options,  Next: VAX Options,  Up: Submodel Options
  461.  
  462. M680x0 Options
  463. --------------
  464.  
  465.    These are the `-m' options defined for the 68000 series.  The default
  466. values for these options depends on which style of 68000 was selected
  467. when the compiler was configured; the defaults for the most common
  468. choices are given below.
  469.  
  470. `-m68000'
  471. `-mc68000'
  472.      Generate output for a 68000.  This is the default when the
  473.      compiler is configured for 68000-based systems.
  474.  
  475. `-m68020'
  476. `-mc68020'
  477.      Generate output for a 68020.  This is the default when the
  478.      compiler is configured for 68020-based systems.
  479.  
  480. `-m68881'
  481.      Generate output containing 68881 instructions for floating point.
  482.      This is the default for most 68020 systems unless `-nfp' was
  483.      specified when the compiler was configured.
  484.  
  485. `-m68030'
  486.      Generate output for a 68030.  This is the default when the
  487.      compiler is configured for 68030-based systems.
  488.  
  489. `-m68040'
  490.      Generate output for a 68040.  This is the default when the
  491.      compiler is configured for 68040-based systems.
  492.  
  493. `-m68020-40'
  494.      Generate output for a 68040, without using any of the new
  495.      instructions.  This results in code which can run relatively
  496.      efficiently on either a 68020/68881 or a 68030 or a 68040.
  497.  
  498. `-mfpa'
  499.      Generate output containing Sun FPA instructions for floating point.
  500.  
  501. `-msoft-float'
  502.      Generate output containing library calls for floating point.
  503.      *Warning:* the requisite libraries are not part of GNU CC.
  504.      Normally the facilities of the machine's usual C compiler are
  505.      used, but this can't be done directly in cross-compilation.  You
  506.      must make your own arrangements to provide suitable library
  507.      functions for cross-compilation.
  508.  
  509. `-mshort'
  510.      Consider type `int' to be 16 bits wide, like `short int'.
  511.  
  512. `-mnobitfield'
  513.      Do not use the bit-field instructions.  The `-m68000' option
  514.      implies `-mnobitfield'.
  515.  
  516. `-mbitfield'
  517.      Do use the bit-field instructions.  The `-m68020' option implies
  518.      `-mbitfield'.  This is the default if you use the unmodified
  519.      sources configured for a 68020.
  520.  
  521. `-mrtd'
  522.      Use a different function-calling convention, in which functions
  523.      that take a fixed number of arguments return with the `rtd'
  524.      instruction, which pops their arguments while returning.  This
  525.      saves one instruction in the caller since there is no need to pop
  526.      the arguments there.
  527.  
  528.      This calling convention is incompatible with the one normally used
  529.      on Unix, so you cannot use it if you need to call libraries
  530.      compiled with the Unix compiler.
  531.  
  532.      Also, you must provide function prototypes for all functions that
  533.      take variable numbers of arguments (including `printf'); otherwise
  534.      incorrect code will be generated for calls to those functions.
  535.  
  536.      In addition, seriously incorrect code will result if you call a
  537.      function with too many arguments.  (Normally, extra arguments are
  538.      harmlessly ignored.)
  539.  
  540.      The `rtd' instruction is supported by the 68010 and 68020
  541.      processors, but not by the 68000.
  542.  
  543. File: gcc.info,  Node: VAX Options,  Next: SPARC Options,  Prev: M680x0 Options,  Up: Submodel Options
  544.  
  545. VAX Options
  546. -----------
  547.  
  548.    These `-m' options are defined for the Vax:
  549.  
  550. `-munix'
  551.      Do not output certain jump instructions (`aobleq' and so on) that
  552.      the Unix assembler for the Vax cannot handle across long ranges.
  553.  
  554. `-mgnu'
  555.      Do output those jump instructions, on the assumption that you will
  556.      assemble with the GNU assembler.
  557.  
  558. `-mg'
  559.      Output code for g-format floating point numbers instead of
  560.      d-format.
  561.  
  562. File: gcc.info,  Node: SPARC Options,  Next: Convex Options,  Prev: VAX Options,  Up: Submodel Options
  563.  
  564. SPARC Options
  565. -------------
  566.  
  567.    These `-m' switches are supported on the SPARC:
  568.  
  569. `-mfpu'
  570. `-mhard-float'
  571.      Generate output containing floating point instructions.  This is
  572.      the default.
  573.  
  574. `-mno-fpu'
  575. `-msoft-float'
  576.      Generate output containing library calls for floating point.
  577.      *Warning:* there is no GNU floating-point library for SPARC.
  578.      Normally the facilities of the machine's usual C compiler are
  579.      used, but this cannot be done directly in cross-compilation.  You
  580.      must make your own arrangements to provide suitable library
  581.      functions for cross-compilation.
  582.  
  583.      `-msoft-float' changes the calling convention in the output file;
  584.      therefore, it is only useful if you compile *all* of a program with
  585.      this option.
  586.  
  587. `-mno-epilogue'
  588. `-mepilogue'
  589.      With `-mepilogue' (the default), the compiler always emits code for
  590.      function exit at the end of each function.  Any function exit in
  591.      the middle of the function (such as a return statement in C) will
  592.      generate a jump to the exit code at the end of the function.
  593.  
  594.      With `-mno-epilogue', the compiler tries to emit exit code inline
  595.      at every function exit.
  596.  
  597. `-mv8'
  598. `-msparclite'
  599.      These two options select variations on the SPARC architecture.
  600.  
  601.      By default (unless specifically configured for the Fujitsu
  602.      SPARClite), GCC generates code for the v7 variant of the SPARC
  603.      architecture.
  604.  
  605.      `-mv8' will give you SPARC v8 code.  The only difference from v7
  606.      code is that the compiler emits the integer multiply and integer
  607.      divide instructions which exist in SPARC v8 but not in SPARC v7.
  608.  
  609.      `-msparclite' will give you SPARClite code.  This adds the integer
  610.      multiply, integer divide step and scan (`ffs') instructions which
  611.      exist in SPARClite but not in SPARC v7.
  612.  
  613. File: gcc.info,  Node: Convex Options,  Next: AMD29K Options,  Prev: SPARC Options,  Up: Submodel Options
  614.  
  615. Convex Options
  616. --------------
  617.  
  618.    These `-m' options are defined for Convex:
  619.  
  620. `-mc1'
  621.      Generate output for C1.  The code will run on any Convex machine.
  622.      The preprocessor symbol `__convex__c1__' is defined.
  623.  
  624. `-mc2'
  625.      Generate output for C2.  Uses instructions not available on C1.
  626.      Scheduling and other optimizations are chosen for max performance
  627.      on C2.  The preprocessor symbol `__convex_c2__' is defined.
  628.  
  629. `-mc32'
  630.      Generate output for C32xx.  Uses instructions not available on C1.
  631.      Scheduling and other optimizations are chosen for max performance
  632.      on C32.  The preprocessor symbol `__convex_c32__' is defined.
  633.  
  634. `-mc34'
  635.      Generate output for C34xx.  Uses instructions not available on C1.
  636.      Scheduling and other optimizations are chosen for max performance
  637.      on C34.  The preprocessor symbol `__convex_c34__' is defined.
  638.  
  639. `-mc38'
  640.      Generate output for C38xx.  Uses instructions not available on C1.
  641.      Scheduling and other optimizations are chosen for max performance
  642.      on C38.  The preprocessor symbol `__convex_c38__' is defined.
  643.  
  644. `-margcount'
  645.      Generate code which puts an argument count in the word preceding
  646.      each argument list.  This is compatible with regular CC, and a few
  647.      programs may need the argument count word.  GDB and other
  648.      source-level debuggers do not need it; this info is in the symbol
  649.      table.
  650.  
  651. `-mnoargcount'
  652.      Omit the argument count word.  This is the default.
  653.  
  654. `-mvolatile-cache'
  655.      Allow volatile references to be cached.  This is the default.
  656.  
  657. `-mvolatile-nocache'
  658.      Volatile references bypass the data cache, going all the way to
  659.      memory.  This is only needed for multi-processor code that does
  660.      not use standard synchronization instructions.  Making
  661.      non-volatile references to volatile locations will not necessarily
  662.      work.
  663.  
  664. `-mlong32'
  665.      Type long is 32 bits, the same as type int.  This is the default.
  666.  
  667. `-mlong64'
  668.      Type long is 64 bits, the same as type long long.  This option is
  669.      useless, because no library support exists for it.
  670.  
  671. File: gcc.info,  Node: AMD29K Options,  Next: M88K Options,  Prev: Convex Options,  Up: Submodel Options
  672.  
  673. AMD29K Options
  674. --------------
  675.  
  676.    These `-m' options are defined for the AMD Am29000:
  677.  
  678. `-mdw'
  679.      Generate code that assumes the `DW' bit is set, i.e., that byte and
  680.      halfword operations are directly supported by the hardware.  This
  681.      is the default.
  682.  
  683. `-mnodw'
  684.      Generate code that assumes the `DW' bit is not set.
  685.  
  686. `-mbw'
  687.      Generate code that assumes the system supports byte and halfword
  688.      write operations.  This is the default.
  689.  
  690. `-mnbw'
  691.      Generate code that assumes the systems does not support byte and
  692.      halfword write operations.  `-mnbw' implies `-mnodw'.
  693.  
  694. `-msmall'
  695.      Use a small memory model that assumes that all function addresses
  696.      are either within a single 256 KB segment or at an absolute
  697.      address of less than 256K.  This allows the `call' instruction to
  698.      be used instead of a `const', `consth', `calli' sequence.
  699.  
  700. `-mlarge'
  701.      Do not assume that the `call' instruction can be used; this is the
  702.      default.
  703.  
  704. `-m29050'
  705.      Generate code for the Am29050.
  706.  
  707. `-m29000'
  708.      Generate code for the Am29000.  This is the default.
  709.  
  710. `-mkernel-registers'
  711.      Generate references to registers `gr64-gr95' instead of to
  712.      registers `gr96-gr127'.  This option can be used when compiling
  713.      kernel code that wants a set of global registers disjoint from
  714.      that used by user-mode code.
  715.  
  716.      Note that when this option is used, register names in `-f' flags
  717.      must use the normal, user-mode, names.
  718.  
  719. `-muser-registers'
  720.      Use the normal set of global registers, `gr96-gr127'.  This is the
  721.      default.
  722.  
  723. `-mstack-check'
  724.      Insert a call to `__msp_check' after each stack adjustment.  This
  725.      is often used for kernel code.
  726.  
  727. File: gcc.info,  Node: M88K Options,  Next: RS/6000 Options,  Prev: AMD29K Options,  Up: Submodel Options
  728.  
  729. M88K Options
  730. ------------
  731.  
  732.    These `-m' options are defined for Motorola 88K architectures:
  733.  
  734. `-m88000'
  735.      Generate code that works well on both the m88100 and the m88110.
  736.  
  737. `-m88100'
  738.      Generate code that works best for the m88100, but that also runs
  739.      on the m88110.
  740.  
  741. `-m88110'
  742.      Generate code that works best for the m88110, and may not run on
  743.      the m88100.
  744.  
  745. `-midentify-revision'
  746.      Include an `ident' directive in the assembler output recording the
  747.      source file name, compiler name and version, timestamp, and
  748.      compilation flags used.
  749.  
  750. `-mno-underscores'
  751.      In assembler output, emit symbol names without adding an underscore
  752.      character at the beginning of each name.  The default is to use an
  753.      underscore as prefix on each name.
  754.  
  755. `-mocs-debug-info'
  756. `-mno-ocs-debug-info'
  757.      Include (or omit) additional debugging information (about
  758.      registers used in each stack frame) as specified in the 88open
  759.      Object Compatibility Standard, "OCS".  This extra information
  760.      allows debugging of code that has had the frame pointer
  761.      eliminated.  The default for DG/UX, SVr4, and Delta 88 SVr3.2 is
  762.      to include this information; other 88k configurations omit this
  763.      information by default.
  764.  
  765. `-mocs-frame-position'
  766.      When emitting COFF debugging information for automatic variables
  767.      and parameters stored on the stack, use the offset from the
  768.      canonical frame address, which is the stack pointer (register 31)
  769.      on entry to the function.  The DG/UX, SVr4, Delta88 SVr3.2, and
  770.      BCS configurations use `-mocs-frame-position'; other 88k
  771.      configurations have the default `-mno-ocs-frame-position'.
  772.  
  773. `-mno-ocs-frame-position'
  774.      When emitting COFF debugging information for automatic variables
  775.      and parameters stored on the stack, use the offset from the frame
  776.      pointer register (register 30).  When this option is in effect,
  777.      the frame pointer is not eliminated when debugging information is
  778.      selected by the -g switch.
  779.  
  780. `-moptimize-arg-area'
  781. `-mno-optimize-arg-area'
  782.      Control how to store function arguments in stack frames.
  783.      `-moptimize-arg-area' saves space, but conflicts with the 88open
  784.      specifications.  However, `-mno-optimize-arg-area' conforms to the
  785.      88open standards.  By default GNU CC does not optimize the argument
  786.      area.
  787.  
  788. `-mshort-data-NUM'
  789.      Generate smaller data references by making them relative to `r0',
  790.      which allows loading a value using a single instruction (rather
  791.      than the usual two).  You control which data references are
  792.      affected by specifying NUM with this option.  For example, if you
  793.      specify `-mshort-data-512', then the data references affected are
  794.      those involving displacements of less than 512 bytes.
  795.      `-mshort-data-NUM' is not effective for NUM greater than 64K.
  796.  
  797. `-mserialize-volatile'
  798. `-mno-serialize-volatile'
  799.      Do, or do not, generate code to guarantee sequential consistency of
  800.      volatile memory references.
  801.  
  802.      GNU CC always guarantees consistency by default, for the preferred
  803.      processor submodel.  How this is done depends on the submodel.
  804.  
  805.      The m88100 processor does not reorder memory references and so
  806.      always provides sequential consistency.  If you use `-m88100', GNU
  807.      CC does not generate any special instructions for sequential
  808.      consistency.
  809.  
  810.      The order of memory references made by the m88110 processor does
  811.      not always match the order of the instructions requesting those
  812.      references.  In particular, a load instruction may execute before
  813.      a preceding store instruction.  Such reordering violates
  814.      sequential consistency of volatile memory references, when there
  815.      are multiple processors.  When you use `-m88000' or `-m88110', GNU
  816.      CC generates special instructions when appropriate, to force
  817.      execution in the proper order.
  818.  
  819.      The extra code generated to guarantee consistency may affect the
  820.      performance of your application.  If you know that you can safely
  821.      forgo this guarantee, you may use the option
  822.      `-mno-serialize-volatile'.
  823.  
  824.      If you use the `-m88100' option but require sequential consistency
  825.      when running on the m88110 processor, you should use
  826.      `-mserialize-volatile'.
  827.  
  828. `-msvr4'
  829. `-msvr3'
  830.      Turn on (`-msvr4') or off (`-msvr3') compiler extensions related
  831.      to System V release 4 (SVr4).  This controls the following:
  832.  
  833.        1. Which variant of the assembler syntax to emit (which you can
  834.           select independently using `-mversion-03.00').
  835.  
  836.        2. `-msvr4' makes the C preprocessor recognize `#pragma weak'
  837.           that is used on System V release 4.
  838.  
  839.        3. `-msvr4' makes GNU CC issue additional declaration directives
  840.           used in SVr4.
  841.  
  842.      `-msvr3' is the default for all m88K configurations except the
  843.      SVr4 configuration.
  844.  
  845. `-mversion-03.00'
  846.      In the DG/UX configuration, there are two flavors of SVr4.  This
  847.      option modifies `-msvr4' to select whether the hybrid-COFF or
  848.      real-ELF flavor is used.  All other configurations ignore this
  849.      option.
  850.  
  851. `-mno-check-zero-division'
  852. `-mcheck-zero-division'
  853.      Early models of the 88K architecture had problems with division by
  854.      zero; in particular, many of them didn't trap.  Use these options
  855.      to avoid including (or to include explicitly) additional code to
  856.      detect division by zero and signal an exception.  All GNU CC
  857.      configurations for the 88K use `-mcheck-zero-division' by default.
  858.  
  859. `-muse-div-instruction'
  860.      Do not emit code to check both the divisor and dividend when doing
  861.      signed integer division to see if either is negative, and adjust
  862.      the signs so the divide is done using non-negative numbers.
  863.      Instead, rely on the operating system to calculate the correct
  864.      value when the `div' instruction traps.  This results in different
  865.      behavior when the most negative number is divided by -1, but is
  866.      useful when most or all signed integer divisions are done with
  867.      positive numbers.
  868.  
  869. `-mtrap-large-shift'
  870. `-mhandle-large-shift'
  871.      Include code to detect bit-shifts of more than 31 bits;
  872.      respectively, trap such shifts or emit code to handle them
  873.      properly.  By default GNU CC makes no special provision for large
  874.      bit shifts.
  875.  
  876. `-mwarn-passed-structs'
  877.      Warn when a function passes a struct as an argument or result.
  878.      Structure-passing conventions have changed during the evolution of
  879.      the C language, and are often the source of portability problems.
  880.      By default, GNU CC issues no such warning.
  881.  
  882. File: gcc.info,  Node: RS/6000 Options,  Next: RT Options,  Prev: M88K Options,  Up: Submodel Options
  883.  
  884. IBM RS/6000 Options
  885. -------------------
  886.  
  887.    Only one pair of `-m' options is defined for the IBM RS/6000:
  888.  
  889. `-mfp-in-toc'
  890. `-mno-fp-in-toc'
  891.      Control whether or not floating-point constants go in the Table of
  892.      Contents (TOC), a table of all global variable and function
  893.      addresses.  By default GNU CC puts floating-point constants there;
  894.      if the TOC overflows, `-mno-fp-in-toc' will reduce the size of the
  895.      TOC, which may avoid the overflow.
  896.  
  897. File: gcc.info,  Node: RT Options,  Next: MIPS Options,  Prev: RS/6000 Options,  Up: Submodel Options
  898.  
  899. IBM RT Options
  900. --------------
  901.  
  902.    These `-m' options are defined for the IBM RT PC:
  903.  
  904. `-min-line-mul'
  905.      Use an in-line code sequence for integer multiplies.  This is the
  906.      default.
  907.  
  908. `-mcall-lib-mul'
  909.      Call `lmul$$' for integer multiples.
  910.  
  911. `-mfull-fp-blocks'
  912.      Generate full-size floating point data blocks, including the
  913.      minimum amount of scratch space recommended by IBM.  This is the
  914.      default.
  915.  
  916. `-mminimum-fp-blocks'
  917.      Do not include extra scratch space in floating point data blocks.
  918.      This results in smaller code, but slower execution, since scratch
  919.      space must be allocated dynamically.
  920.  
  921. `-mfp-arg-in-fpregs'
  922.      Use a calling sequence incompatible with the IBM calling
  923.      convention in which floating point arguments are passed in
  924.      floating point registers.  Note that `varargs.h' and `stdargs.h'
  925.      will not work with floating point operands if this option is
  926.      specified.
  927.  
  928. `-mfp-arg-in-gregs'
  929.      Use the normal calling convention for floating point arguments.
  930.      This is the default.
  931.  
  932. `-mhc-struct-return'
  933.      Return structures of more than one word in memory, rather than in a
  934.      register.  This provides compatibility with the MetaWare HighC (hc)
  935.      compiler.  Use `-fpcc-struct-return' for compatibility with the
  936.      Portable C Compiler (pcc).
  937.  
  938. `-mnohc-struct-return'
  939.      Return some structures of more than one word in registers, when
  940.      convenient.  This is the default.  For compatibility with the
  941.      IBM-supplied compilers, use either `-fpcc-struct-return' or
  942.      `-mhc-struct-return'.
  943.  
  944. File: gcc.info,  Node: MIPS Options,  Next: i386 Options,  Prev: RT Options,  Up: Submodel Options
  945.  
  946. MIPS Options
  947. ------------
  948.  
  949.    These `-m' options are defined for the MIPS family of computers:
  950.  
  951. `-mcpu=CPU TYPE'
  952.      Assume the defaults for the machine type CPU TYPE when scheduling
  953.      instructions.  The default CPU TYPE is `default', which picks the
  954.      longest cycles times for any of the machines, in order that the
  955.      code run at reasonable rates on all MIPS cpu's.  Other choices for
  956.      CPU TYPE are `r2000', `r3000', `r4000', and `r6000'.  While
  957.      picking a specific CPU TYPE will schedule things appropriately for
  958.      that particular chip, the compiler will not generate any code that
  959.      does not meet level 1 of the MIPS ISA (instruction set
  960.      architecture) without the `-mips2' or `-mips3' switches being used.
  961.  
  962. `-mips2'
  963.      Issue instructions from level 2 of the MIPS ISA (branch likely,
  964.      square root instructions).  The `-mcpu=r4000' or `-mcpu=r6000'
  965.      switch must be used in conjunction with `-mips2'.
  966.  
  967. `-mips3'
  968.      Issue instructions from level 3 of the MIPS ISA (64 bit
  969.      instructions).  You must use the `-mcpu=r4000' switch along with
  970.      `-mips3'.
  971.  
  972. `-mint64'
  973. `-mlong64'
  974. `-mlonglong128'
  975.      These options don't work at present.
  976.  
  977. `-mmips-as'
  978.      Generate code for the MIPS assembler, and invoke `mips-tfile' to
  979.      add normal debug information.  This is the default for all
  980.      platforms except for the OSF/1 reference platform, using the
  981.      OSF/rose object format.  If the either of the `-gstabs' or
  982.      `-gstabs+' switches are used, the `mips-tfile' program will
  983.      encapsulate the stabs within MIPS ECOFF.
  984.  
  985. `-mgas'
  986.      Generate code for the GNU assembler.  This is the default on the
  987.      OSF/1 reference platform, using the OSF/rose object format.
  988.  
  989. `-mrnames'
  990. `-mno-rnames'
  991.      The `-mrnames' switch says to output code using the MIPS software
  992.      names for the registers, instead of the hardware names (ie, A0
  993.      instead of $4).  The GNU assembler does not support the `-mrnames'
  994.      switch, and the MIPS assembler will be instructed to run the MIPS
  995.      C preprocessor over the source file.  The `-mno-rnames' switch is
  996.      default.
  997.  
  998. `-mgpopt'
  999. `-mno-gpopt'
  1000.      The `-mgpopt' switch says to write all of the data declarations
  1001.      before the instructions in the text section, this allows the MIPS
  1002.      assembler to generate one word memory references instead of using
  1003.      two words for short global or static data items.  This is on by
  1004.      default if optimization is selected.
  1005.  
  1006. `-mstats'
  1007. `-mno-stats'
  1008.      For each non-inline function processed, the `-mstats' switch
  1009.      causes the compiler to emit one line to the standard error file to
  1010.      print statistics about the program (number of registers saved,
  1011.      stack size, etc.).
  1012.  
  1013. `-mmemcpy'
  1014. `-mno-memcpy'
  1015.      The `-mmemcpy' switch makes all block moves call the appropriate
  1016.      string function (`memcpy' or `bcopy') instead of possibly
  1017.      generating inline code.
  1018.  
  1019. `-mmips-tfile'
  1020. `-mno-mips-tfile'
  1021.      The `-mno-mips-tfile' switch causes the compiler not postprocess
  1022.      the object file with the `mips-tfile' program, after the MIPS
  1023.      assembler has generated it to add debug support.  If `mips-tfile'
  1024.      is not run, then no local variables will be available to the
  1025.      debugger.  In addition, `stage2' and `stage3' objects will have
  1026.      the temporary file names passed to the assembler embedded in the
  1027.      object file, which means the objects will not compare the same.
  1028.      The `-mno-mips-tfile' switch should only be used when there are
  1029.      bugs in the `mips-tfile' program that prevents compilation.
  1030.  
  1031. `-msoft-float'
  1032.      Generate output containing library calls for floating point.
  1033.      *Warning:* the requisite libraries are not part of GNU CC.
  1034.      Normally the facilities of the machine's usual C compiler are
  1035.      used, but this can't be done directly in cross-compilation.  You
  1036.      must make your own arrangements to provide suitable library
  1037.      functions for cross-compilation.
  1038.  
  1039. `-mhard-float'
  1040.      Generate output containing floating point instructions.  This is
  1041.      the default if you use the unmodified sources.
  1042.  
  1043. `-mfp64'
  1044.      Assume that the FR bit in the status word is on, and that there
  1045.      are 32 64-bit floating point registers, instead of 32 32-bit
  1046.      floating point registers.  You must also specify the `-mcpu=r4000'
  1047.      and `-mips3' switches.
  1048.  
  1049. `-mfp32'
  1050.      Assume that there are 32 32-bit floating point registers.  This is
  1051.      the default.
  1052.  
  1053. `-mabicalls'
  1054. `-mno-abicalls'
  1055.      Emit (or do not emit) the `.abicalls', `.cpload', and `.cprestore'
  1056.      pseudo operations that some System V.4 ports use for position
  1057.      independent code.
  1058.  
  1059. `-mlong-calls'
  1060. `-mlong-calls'
  1061.      Do all calls with the `JALR' instruction, which requires loading
  1062.      up a function's address into a register before the call.  You need
  1063.      to use this switch, if you call outside of the current 512
  1064.      megabyte segment to functions that are not through pointers.
  1065.  
  1066. `-mhalf-pic'
  1067. `-mno-half-pic'
  1068.      Put pointers to extern references into the data section and load
  1069.      them up, rather than put the references in the text section.
  1070.  
  1071. `-G NUM'
  1072.      Put global and static items less than or equal to NUM bytes into
  1073.      the small data or bss sections instead of the normal data or bss
  1074.      section.  This allows the assembler to emit one word memory
  1075.      reference instructions based on the global pointer (GP or $28),
  1076.      instead of the normal two words used.  By default, NUM is 8 when
  1077.      the MIPS assembler is used, and 0 when the GNU assembler is used.
  1078.      The `-G NUM' switch is also passed to the assembler and linker.
  1079.      All modules should be compiled with the same `-G NUM' value.
  1080.  
  1081. `-nocpp'
  1082.      Tell the MIPS assembler to not run it's preprocessor over user
  1083.      assembler files (with a `.s' suffix) when assembling them.
  1084.  
  1085.    These options are defined by the macro `TARGET_SWITCHES' in the
  1086. machine description.  The default for the options is also defined by
  1087. that macro, which enables you to change the defaults.
  1088.  
  1089. File: gcc.info,  Node: i386 Options,  Next: HPPA Options,  Prev: MIPS Options,  Up: Submodel Options
  1090.  
  1091. Intel 386 Options
  1092. -----------------
  1093.  
  1094.    These `-m' options are defined for the i386 family of computers:
  1095.  
  1096. `-m486'
  1097. `-mno-486'
  1098.      Control whether or not code is optimized for a 486 instead of an
  1099.      386.  Code generated for an 486 will run on a 386 and vice versa.
  1100.  
  1101. `-msoft-float'
  1102.      Generate output containing library calls for floating point.
  1103.      *Warning:* the requisite libraries are not part of GNU CC.
  1104.      Normally the facilities of the machine's usual C compiler are
  1105.      used, but this can't be done directly in cross-compilation.  You
  1106.      must make your own arrangements to provide suitable library
  1107.      functions for cross-compilation.
  1108.  
  1109.      On machines where a function returns floating point results in the
  1110.      80387 register stack, some floating point opcodes may be emitted
  1111.      even if `-msoft-float' is used.
  1112.  
  1113. `-mno-fp-ret-in-387'
  1114.      Do not use the FPU registers for return values of functions.
  1115.  
  1116.      The usual calling convention has functions return values of types
  1117.      `float' and `double' in an FPU register, even if there is no FPU.
  1118.      The idea is that the operating system should emulate an FPU.
  1119.  
  1120.      The option `-mno-fp-ret-in-387' causes such values to be returned
  1121.      in ordinary CPU registers instead.
  1122.  
  1123. File: gcc.info,  Node: HPPA Options,  Next: Intel 960 Options,  Prev: i386 Options,  Up: Submodel Options
  1124.  
  1125. HPPA Options
  1126. ------------
  1127.  
  1128.    These `-m' options are defined for the HPPA family of computers:
  1129.  
  1130. `-mpa-risc-1-0'
  1131.      Generate code for a PA 1.0 processor.
  1132.  
  1133. `-mpa-risc-1-1'
  1134.      Generate code for a PA 1.1 processor.
  1135.  
  1136. `-mkernel'
  1137.      Generate code which is suitable for use in kernels.  Specifically,
  1138.      avoid `add' instructions in which one of the arguments is the DP
  1139.      register; generate `addil' instructions instead.  This avoids a
  1140.      rather serious bug in the HP-UX linker.
  1141.  
  1142. `-mshared-libs'
  1143.      Generate code that can be linked against HP-UX shared libraries.
  1144.      This option is not fully function yet, and is not on by default
  1145.      for any PA target.  Using this option can cause incorrect code to
  1146.      be generated by the compiler.
  1147.  
  1148. `-mno-shared-libs'
  1149.      Don't generate code that will be linked against shared libraries.
  1150.      This is the default for all PA targets.
  1151.  
  1152. `-mlong-calls'
  1153.      Generate code which allows calls to functions greater than 256K
  1154.      away from the caller when the caller and callee are in the same
  1155.      source file.  Do not turn this option on unless code refuses to
  1156.      link with "branch out of range errors" from the linker.
  1157.  
  1158. `-mdisable-fpregs'
  1159.      Prevent floating point registers from being used in any manner.
  1160.      This is necessary for compiling kernels which perform lazy context
  1161.      switching of floating point registers.  If you use this option and
  1162.      attempt to perform floating point operations, the compiler will
  1163.      abort.
  1164.  
  1165. `-mdisable-indexing'
  1166.      Prevent the compiler from using indexing address modes.  This
  1167.      avoids some rather obscure problems when compiling MIG generated
  1168.      code under MACH.
  1169.  
  1170. `-mtrailing-colon'
  1171.      Add a colon to the end of label definitions (for ELF assemblers).
  1172.  
  1173. File: gcc.info,  Node: Intel 960 Options,  Next: DEC Alpha Options,  Prev: HPPA Options,  Up: Submodel Options
  1174.  
  1175. Intel 960 Options
  1176. -----------------
  1177.  
  1178.    These `-m' options are defined for the Intel 960 implementations:
  1179.  
  1180. `-mCPU TYPE'
  1181.      Assume the defaults for the machine type CPU TYPE for some of the
  1182.      other options, including instruction scheduling, floating point
  1183.      support, and addressing modes.  The choices for CPU TYPE are `ka',
  1184.      `kb', `mc', `ca', `cf', `sa', and `sb'.  The default is `kb'.
  1185.  
  1186. `-mnumerics'
  1187. `-msoft-float'
  1188.      The `-mnumerics' option indicates that the processor does support
  1189.      floating-point instructions.  The `-msoft-float' option indicates
  1190.      that floating-point support should not be assumed.
  1191.  
  1192. `-mleaf-procedures'
  1193. `-mno-leaf-procedures'
  1194.      Do (or do not) attempt to alter leaf procedures to be callable
  1195.      with the `bal' instruction as well as `call'.  This will result in
  1196.      more efficient code for explicit calls when the `bal' instruction
  1197.      can be substituted by the assembler or linker, but less efficient
  1198.      code in other cases, such as calls via function pointers, or using
  1199.      a linker that doesn't support this optimization.
  1200.  
  1201. `-mtail-call'
  1202. `-mno-tail-call'
  1203.      Do (or do not) make additional attempts (beyond those of the
  1204.      machine-independent portions of the compiler) to optimize
  1205.      tail-recursive calls into branches.  You may not want to do this
  1206.      because the detection of cases where this is not valid is not
  1207.      totally complete.  The default is `-mno-tail-call'.
  1208.  
  1209. `-mcomplex-addr'
  1210. `-mno-complex-addr'
  1211.      Assume (or do not assume) that the use of a complex addressing
  1212.      mode is a win on this implementation of the i960.  Complex
  1213.      addressing modes may not be worthwhile on the K-series, but they
  1214.      definitely are on the C-series.  The default is currently
  1215.      `-mcomplex-addr' for all processors except the CB and CC.
  1216.  
  1217. `-mcode-align'
  1218. `-mno-code-align'
  1219.      Align code to 8-byte boundaries for faster fetching (or don't
  1220.      bother).  Currently turned on by default for C-series
  1221.      implementations only.
  1222.  
  1223. `-mic-compat'
  1224. `-mic2.0-compat'
  1225. `-mic3.0-compat'
  1226.      Enable compatibility with iC960 v2.0 or v3.0.
  1227.  
  1228. `-masm-compat'
  1229. `-mintel-asm'
  1230.      Enable compatibility with the iC960 assembler.
  1231.  
  1232. `-mstrict-align'
  1233. `-mno-strict-align'
  1234.      Do not permit (do permit) unaligned accesses.
  1235.  
  1236. `-mold-align'
  1237.      Enable structure-alignment compatibility with Intel's gcc release
  1238.      version 1.3 (based on gcc 1.37).  Currently this is buggy in that
  1239.      `#pragma align 1' is always assumed as well, and cannot be turned
  1240.      off.
  1241.  
  1242. File: gcc.info,  Node: DEC Alpha Options,  Next: System V Options,  Prev: Intel 960 Options,  Up: Submodel Options
  1243.  
  1244. DEC Alpha Options
  1245. -----------------
  1246.  
  1247.    These `-m' options are defined for the DEC Alpha implementations:
  1248.  
  1249. `-mno-soft-float'
  1250. `-msoft-float'
  1251.      Use (do not use) the hardware floating-point instructions for
  1252.      floating-point operations.  When `-msoft-float' is specified,
  1253.      functions in `libgcc1.c' will be used to perform floating-point
  1254.      operations.  Unless they are replaced by routines that emulate the
  1255.      floating-point operations, or compiled in such a way as to call
  1256.      such emulations routines, these routines will issue floating-point
  1257.      operations.   If you are compiling for an Alpha without
  1258.      floating-point operations, you must ensure that the library is
  1259.      built so as not to call them.
  1260.  
  1261.      Note that Alpha implementations without floating-point operations
  1262.      are required to have floating-point registers.
  1263.  
  1264. `-mfp-reg'
  1265. `-mno-fp-regs'
  1266.      Generate code that uses (does not use) the floating-point register
  1267.      set.  `-mno-fp-regs' implies `-msoft-float'.  If the floating-point
  1268.      register set is not used, floating point operands are passed in
  1269.      integer registers as if they were integers and floating-point
  1270.      results are passed in $0 instead of $f0.  This is a non-standard
  1271.      calling sequence, so any function with a floating-point argument
  1272.      or return value called by code compiled with `-mno-fp-regs' must
  1273.      also be compiled with that option.
  1274.  
  1275.      A typical use of this option is building a kernel that does not
  1276.      use, and hence need not save and restore, any floating-point
  1277.      registers.
  1278.  
  1279. ə